package me.zhengjie.modules.equipment.repository;


import me.zhengjie.modules.equipment.domain.TEqptModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
* @author jie
* @date 2019-11-16
*/
public interface TEqptModelRepository extends JpaRepository<TEqptModel, Integer>, JpaSpecificationExecutor {

    @Query("select t from TEqptModel t where t.eqptId = ?1")
    List<TEqptModel> listByEqptId(Integer sparepartId) ;
}